package com.patui.DataStructure;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
public class SQLHelper extends SQLDbOpenHelper {
	private String create_home_table = "CREATE TABLE IF NOT EXISTS " + SQLTableHome.HOME_TABLE + "("
			+ SQLTableHome.WEIBO_ID + " TEXT primary key," + SQLTableHome.WEIBO_CONTENT + " TEXT," + SQLTableHome.WEIBO_PIC + " TEXT,"
			+ SQLTableHome.WEIBO_CREATE_TIME + " TEXT," + SQLTableHome.WEIBO_CREAT_FROM + " TEXT," + SQLTableHome.WEIBO_COMMENT_NUM
			+ " TEXT," + SQLTableHome.WEIBO_RETWEENT_NUM + " TEXT," + SQLTableHome.WEIBO_USER_ID + " TEXT," + SQLTableHome.WEIBO_USER_NICK
			+ " TEXT," + SQLTableHome.WEIBO_USER_HEAD_ICON + " TEXT," + SQLTableHome.WEIBO_USER_VERIFIED + " TEXT,"
			+ SQLTableHome.RETWEETED_WEIBO_ID
			+ " TEXT," + SQLTableHome.RETWEETED_WEIBO_RTCONTENT + " TEXT," + SQLTableHome.RETWEETED_WEIBO_PIC + " TEXT,"
			+ SQLTableHome.RETWEETED_USER_ID + " TEXT," + SQLTableHome.RETWEETED_USER_NICK+ " TEXT)";
	public SQLHelper(String name, CursorFactory factory, int version) {
		super(name, factory, version);
		// TODO Auto-generated constructor stub
	}
	@Override
	public void onCreate(SQLiteDatabase db) {
		db.execSQL(create_home_table);
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

	}

}
